<template>
	<view>
		<view class="main">
			<view class="grouping-item" v-for="i in 4">
				<view class="grouping-title">
					<text>分組1</text>
					<image src="../../static/icon/Cut@3x.png" mode=""></image>
				</view>
				<view class="grouping-content">
					<text>分組名稱</text>
					<text>全部</text>
				</view>
			</view>
			<view class="addGroup">
				<button @click="add">添加分組</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'addSub',
		data() {
			return {
			}
		},
		methods: {
			add(){
				console.log('添加分組')
			}

		}
	}
</script>

<style lang="scss" scoped>
	.main {
		width: 92%;
		margin: 0 auto;
		position: relative;
	}

	image {
		width: 40upx;
		height: 40upx;
		vertical-align: middle;
	}

	.grouping-title,
	.grouping-content {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		padding: 20upx 0;
	}

	.grouping-content {
		background-color: #FFFFFF;
		padding: 40upx;
		border-radius: 20upx;
		box-shadow: 0 0 30px #e6e6e6;
			text{
				font-size: 32upx;
			}
	}

	.grouping-title {
		text {
			font-size: 40upx;
		}
	}


	.addGroup {
		width: 92%;
		position: fixed;
		bottom: 20upx;
			button {
				width: 100%;
				height: 80upx;
				line-height: 80upx;
				background-color: #508df1;
				color: #FFFFFF;
				font-size: 32upx;
			}
	}

</style>
